#ifndef UTILS_H
#define UTILS_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "user.h"


char* my_strdup(const char *s);
void swap(struct Work *a, struct Work *b);
void swap_like(struct Likework *a, struct Likework *b);
void realloc_and_copy(char **dest, const char *src);
void save_all_data(struct User *u);
#endif
